/*
 * Copyright © 2022
 * @Author: zhangxiang
 * @Date: 2022-11-18 15:33:04
 * @LastEditors: zhangxiang
 * @LastEditTime: 2023-08-14 15:52:52
 * @Description:
 *
 */

import Layout from '@/layout'

const permissionRouter = {
  path: '/system-mgmt',
  component: Layout,
  redirect: '/system-mgmt/menu',
  name: 'SystemMgmt',
  alwaysShow: true,
  meta: {
    title: '系统管理',
    menuNameKey: 'SystemMgmt',
    icon: 'system-mgmt'
  },
  children: [
    {
      path: 'menu',
      name: 'SystemMgmtMenu',
      component: () => import('@/views/system-mgmt/menu'),
      meta: {
        title: '菜单配置',
        menuNameKey: 'SystemMgmtMenu', icon: '', menuKey: 'SystemMgmtMenu'
      }
    },
    {
      path: 'quota',
      name: 'SystemMgmtQuota',
      component: () => import('@/views/system-mgmt/quota'),
      meta: {
        title: '资源配额',
        menuNameKey: 'SystemMgmtQuota', icon: '', menuKey: 'SystemMgmtQuota'
      }
    },
    {
      path: 'verify',
      name: 'SystemMgmtVerify',
      component: () => import('@/views/system-mgmt/verify'),
      meta: {
        title: '用户审核',
        menuNameKey: 'SystemMgmtVerify', icon: '', menuKey: 'SystemMgmtVerify'
      }
    },
    {
      path: 'roles',
      name: 'SystemMgmtRoles',
      component: () => import('@/views/system-mgmt/roles'),
      meta: {
        title: '角色管理',
        menuNameKey: 'SystemMgmtRoles', icon: '', menuKey: 'SystemMgmtRoles'
      }
    },
    {
      path: 'authority',
      name: 'SystemMgmtAuthority',
      component: () => import('@/views/system-mgmt/authority/index2.vue'),
      meta: {
        title: '权限管理',
        menuNameKey: 'SystemMgmtAuthority', icon: '', menuKey: 'SystemMgmtAuthority'
      }
    },
    {
      path: 'users',
      name: 'SystemMgmtUsers',
      component: () => import('@/views/system-mgmt/users'),
      meta: {
        title: '用户管理',
        menuNameKey: 'SystemMgmtUsers', icon: '', menuKey: 'SystemMgmtUsers'
      }
    }
  ]
}

export default permissionRouter
